import { Component, OnInit } from '@angular/core';
import {ActivatedRoute} from '@angular/router';
import {Subscription} from 'rxjs';
import {Router} from '@angular/router';

@Component({
  selector: 'app-manager',
  templateUrl: './manager.component.html',
  styleUrls: ['./manager.component.css']
})
export class ManagerComponent implements OnInit {
  public data: any;
  protected subscription: Subscription;
  constructor(public activateRoute: ActivatedRoute, public router: Router) { }
  private get() {
    // console.log('liuzhi');
    // console.log(this.data);
    return this.data;
  }
  ngOnInit() {
    this.data = this.activateRoute.snapshot.params;
  }

}
